package com.etc.service.impl;

import java.util.List;

import com.etc.entity.AsClickmatter;
import com.etc.mapper.AsClickmatterMapper;
import com.etc.service.IAsClickmatterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 用户浏览记录表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-27
 */
@Service
public class AsClickmatterServiceImpl implements IAsClickmatterService
{
    @Autowired
    private AsClickmatterMapper asClickmatterMapper;

    /**
     * 查询用户浏览记录表
     * 
     * @param id 用户浏览记录表主键
     * @return 用户浏览记录表
     */
    @Override
    public AsClickmatter selectAsClickmatterById(Long id)
    {
        return asClickmatterMapper.selectAsClickmatterById(id);
    }

    /**
     * 查询用户浏览记录表列表
     * 
     * @param asClickmatter 用户浏览记录表
     * @return 用户浏览记录表
     */
    @Override
    public List<AsClickmatter> selectAsClickmatterList(AsClickmatter asClickmatter)
    {
        return asClickmatterMapper.selectAsClickmatterList(asClickmatter);
    }

    /**
     * 新增用户浏览记录表
     * 
     * @param asClickmatter 用户浏览记录表
     * @return 结果
     */
    @Override
    public int insertAsClickmatter(AsClickmatter asClickmatter)
    {
        return asClickmatterMapper.insertAsClickmatter(asClickmatter);
    }

    /**
     * 修改用户浏览记录表
     * 
     * @param asClickmatter 用户浏览记录表
     * @return 结果
     */
    @Override
    public int updateAsClickmatter(AsClickmatter asClickmatter)
    {
        return asClickmatterMapper.updateAsClickmatter(asClickmatter);
    }

    /**
     * 批量删除用户浏览记录表
     * 
     * @param ids 需要删除的用户浏览记录表主键
     * @return 结果
     */
    @Override
    public int deleteAsClickmatterByIds(Long[] ids)
    {
        return asClickmatterMapper.deleteAsClickmatterByIds(ids);
    }

    /**
     * 删除用户浏览记录表信息
     * 
     * @param id 用户浏览记录表主键
     * @return 结果
     */
    @Override
    public int deleteAsClickmatterById(Long id)
    {
        return asClickmatterMapper.deleteAsClickmatterById(id);
    }
}
